home *** CD-ROM | disk | FTP | other *** search
/ Speccy ClassiX 1998 / Speccy ClassiX 98.iso / amiga_system / the_aminet / dev / gcc / libmat.lha / src / alloc.cc next >
C/C++ Source or Header  |  1980-01-01  |  217b  |  14 lines

  1. //                MATRIX LIB
  2. //            TOMMY JOHANSSON 1995
  3.  
  4. #include "matrix.h"
  5.  
  6. float **alloc(int col,int row)
  7. {
  8.     int i,j;
  9.     float **temp;
  10.     temp=new (float *)[col];
  11.     for(i=0;i<=col-1;i++)
  12.         *(temp+i)=new float [row];
  13.     return(temp);
  14. }